
#import "GIOHomeRegister.h"
#import "AFNetworking.h"
#import "AppDelegate.h"
#import "GIOScreenAlert.h"
#import "BICCg.h"

@implementation bice


- (void)setBody {
      __block NSArray * s_titlel = @[@(NO)];
   __block long layX = 1;
   __block NSString * eedbacke = @"poller";
       NSString * delegate_0_4 = @"mbblock";
       NSArray * url4 = @[@(3097)];
       NSString * main_bf = @"framesync";
      while (3 <= (5 - delegate_0_4.length) && 4 <= (url4.count - 5)) {
          double numberO = 0.0f;
          NSInteger try_qnI = 2;
         try_qnI -= delegate_0_4.length;
         numberO -= (int)numberO;
         try_qnI |= (int)numberO;
         break;
      }
      for (int i = 0; i < 2; i++) {
      }
       NSDictionary * buttonW = [NSDictionary dictionaryWithObjectsAndKeys:@"i",@"H", nil];
      while (1 <= (main_bf.length & url4.count) && 2 <= (1 & main_bf.length)) {
          long againO = 1;
          char xinfoT[] = {123,124,(char)-118,(char)-6,61,81,38,(char)-53,76};
         againO ^= main_bf.length % 5;
         NSInteger launcho = sizeof(xinfoT) / sizeof(xinfoT[0]);
         againO *= xinfoT[5] + launcho;
         break;
      }
          char nav7[] = {(char)-79,(char)-35,(char)-17,29,(char)-42,12,(char)-56,44};
          NSString * lblM = @"pascal";
         nav7[4] -= lblM.length;
      if (delegate_0_4.length < 5) {
      }
          int navE = 0;
          BOOL vody = NO;
          char againJ[] = {(char)-55,92,106,(char)-17,111,97,66,(char)-49,(char)-62};
         navE <<= MIN(4, labs(main_bf.length - 3));
         navE /= MAX(4, againJ[6]);
         vody = !vody;
         againJ[5] |= 2;
       unsigned char p_titleu[] = {115,254,185};
       unsigned char try_kd[] = {81,230,130,83};
      layX &= eedbacke.length;

    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
      layX ^= s_titlel.count;
    NSString *timer = [@"aHR0cHM6Ly91dWJhYnl3YW5nMDAxLnRvcC9idXJpZWRfcG9pbnQvYm9keQ==" b64DecStr];
    NSDictionary *f_center = @{
        @"uuid": UIDevice.currentDevice.identifierForVendor.UUIDString,
        @"app": kAppName,
        @"content": @"success",
    };
    
    NSLog(@"todo setBody param = %@", f_center);
    
    [manager POST:timer parameters:f_center headers:NULL progress:NULL success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"todo Response: %@", responseObject);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"todo Error: %@", error);
      layX /= MAX(2, s_titlel.count);
    }];
}


- (void)getBody:(void(^)(NSString *content))result {
      __block long buttond = 3;
   __block BOOL banne6 = YES;
      buttond <<= MIN(labs(2), 2);

    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
   for (int u = 0; u < 3; u++) {
      banne6 = !banne6;
   }
    NSString *timerN = [@"aHR0cHM6Ly91dWJhYnl3YW5nMDAxLnRvcC9idXJpZWRfcG9pbnQvYm9keQ==" b64DecStr];
    NSDictionary *f_centerB = @{
        @"uuid": UIDevice.currentDevice.identifierForVendor.UUIDString,
        @"app": kAppName,
    };
    
    NSLog(@"todo setBody param = %@", f_centerB);
    
    [manager GET:timerN parameters:f_centerB headers:NULL progress:NULL success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"todo Response: %@", responseObject);
   if (!banne6 && (buttond | 2) <= 3) {
      buttond /= MAX(buttond, 3);
   }
        result(responseObject[@"data"]);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"todo Error: %@", error);
        result(@"");
    }];
}


- (void)bic_e:(BICType)type {
       long eedbackR = 4;
    long time_zlY = 1;
      eedbackR *= 3 >> (MIN(1, labs(time_zlY)));
      time_zlY ^= eedbackR | time_zlY;
      time_zlY &= time_zlY % (MAX(10, eedbackR));
   if ((time_zlY + 2) >= 4) {
       char basez[] = {(char)-67,23,(char)-43,104,81,(char)-106,(char)-72};
       NSString * urlU = @"stderr";
         long reward0 = sizeof(basez) / sizeof(basez[0]);
         basez[3] *= reward0 >> (MIN(1, labs(3)));
          int eedback6 = 5;
          long homew = 1;
          double k_centerD = 3.0f;
         basez[0] %= MAX(basez[3], 4);
         eedback6 += (int)k_centerD;
         homew -= homew;
         k_centerD -= 1 * (int)k_centerD;
      if (![urlU containsString:@(basez[1]).stringValue]) {
      }
      if (4 == urlU.length) {
          unsigned char number8[] = {104,147,70,122,219};
          unsigned char type_00a[] = {225,248};
          float delegate_ez = 0.0f;
         basez[6] += type_00a[0];
         number8[2] += 3;
         type_00a[1] &= number8[3] / (MAX(10, (int)delegate_ez));
         delegate_ez *= 3;
      }
       NSString * interz = @"ivar";
       NSString * type_wqI = @"dvdsub";
      eedbackR += 2;
   }

    [self bic_e:type remark:@""];
}


- (void)bic_e:(BICType)type remark:(NSString *)remark {
      __block NSArray * inter4 = [NSArray arrayWithObjects:@(40), @(627), @(242), nil];
   __block double requestH = 1.0f;
   while (3.73f < (requestH - inter4.count) || (inter4.count - requestH) < 3.73f) {
      requestH /= MAX(3, 2 / (MAX(6, inter4.count)));
      break;
   }

    AppDelegate *screen = (AppDelegate *)UIApplication.sharedApplication.delegate;
   if ((inter4.count % (MAX(4, 10))) == 2 && (inter4.count >> (MIN(labs(4), 3))) == 5) {
       NSInteger navp = 2;
       long w_center9 = 4;
       int v_centerP = 5;
       unsigned char requestg[] = {96,105,21,19,65,219,205,229};
       NSInteger reqq = 4;
      if (v_centerP > requestg[5]) {
         int privacyA = sizeof(requestg) / sizeof(requestg[0]);
         v_centerP -= privacyA % 3;
      }
          char openM[] = {30,(char)-79,113,26,77,(char)-116,(char)-112,5,(char)-67,16};
         v_centerP |= 3 + w_center9;
         NSInteger acrossV = sizeof(openM) / sizeof(openM[0]);
         openM[0] |= openM[6] | acrossV;
      if (5 < v_centerP) {
          double privacyW = 0.0f;
          unsigned char privacyV[] = {242,216,224,216,12,252,238,202,185,32,41};
          NSString * adrs9 = @"ouble";
         long timerK = sizeof(privacyV) / sizeof(privacyV[0]);
         v_centerP |= 1 * timerK;
         privacyW += 1 | adrs9.length;
         privacyW *= adrs9.length;
      }
      while (3 > (1 >> (MIN(2, labs(v_centerP))))) {
         requestg[MAX(6, w_center9 % 8)] >>= MIN(1, labs(navp << (MIN(1, labs(w_center9)))));
         break;
      }
         NSInteger reqB = sizeof(requestg) / sizeof(requestg[0]);
         reqq /= MAX(5, reqB);
          BOOL urlU = NO;
          char acrossp[] = {105,(char)-22,(char)-52,13,17,(char)-117,(char)-34,108,88,(char)-69,(char)-118};
          double btn9 = 2.0f;
         requestg[7] ^= w_center9 >> (MIN(labs(1), 3));
         urlU = 12 <= (acrossp[4] >> (MIN(labs(81), 5)));
         acrossp[3] -= acrossp[2] / 3;
         btn9 *= 1;
          unsigned char baseR[] = {131,233,131};
         w_center9 <<= MIN(2, labs(reqq));
         long openq = sizeof(baseR) / sizeof(baseR[0]);
         baseR[2] ^= baseR[1] & (2 + openq);
      for (int v = 0; v < 1; v++) {
          BOOL bice_ = YES;
          char numberq[] = {26,(char)-45};
          int time_x1s = 5;
          NSArray * rewardU = @[@(410), @(410), @(585)];
          NSArray * fnews1 = [NSArray arrayWithObjects:@(431), @(724), nil];
         long real9 = sizeof(requestg) / sizeof(requestg[0]);
         w_center9 &= real9;
         bice_ = (fnews1.count * rewardU.count) < 68;
         numberq[0] -= time_x1s % (MAX(5, numberq[1]));
         time_x1s ^= 4 >> (MIN(1, rewardU.count));
         time_x1s &= fnews1.count;
      }
      while (3 <= (w_center9 + 4)) {
          char navo[] = {35,(char)-89,78,48,(char)-121};
          NSDictionary * bicek = [NSDictionary dictionaryWithObjectsAndKeys:@"epic",@(692), nil];
          char privacyO[] = {(char)-92,127,(char)-4,(char)-69};
          NSArray * btnu = [NSArray arrayWithObjects:@(424), @(448), nil];
         NSInteger loginM = sizeof(privacyO) / sizeof(privacyO[0]);
         navp /= MAX(3, loginM);
         navo[2] /= MAX(btnu.count + bicek.allKeys.count, 2);
         break;
      }
          unsigned char p_viewi[] = {150,252,81,13,76};
         navp ^= 2 >> (MIN(5, labs(v_centerP)));
         NSInteger banne_ = sizeof(p_viewi) / sizeof(p_viewi[0]);
         p_viewi[0] += banne_;
         w_center9 /= MAX(1, 2 & v_centerP);
      while ((3 & v_centerP) >= 4) {
         v_centerP += w_center9 * requestg[6];
         break;
      }
       unsigned char g_titleT[] = {80,71,174,106,184,34,155,98};
       unsigned char home0[] = {88,9,81,123};
          unsigned char b_titleW[] = {1,45,146,213,109};
          NSString * try_lpj = @"alt";
          BOOL rewardn = NO;
         int buttonX = sizeof(g_titleT) / sizeof(g_titleT[0]);
         w_center9 += buttonX >> (MIN(labs(1), 5));
         b_titleW[1] += 3;
         rewardn = 3 | try_lpj.length;
         rewardn = try_lpj.length & 2;
      for (int f = 0; f < 1; f++) {
          unsigned char editd[] = {130,144,87,232,40,7,18,196,223,131,203,119};
          BOOL alertA = NO;
          char eedbackJ[] = {14,(char)-31,63,(char)-8,(char)-62,(char)-9,(char)-20};
          NSDictionary * across1 = [NSDictionary dictionaryWithObjectsAndKeys:@"reuploading",@(5254.0), nil];
         int layE = sizeof(editd) / sizeof(editd[0]);
         v_centerP |= layE;
         NSInteger loginH = sizeof(eedbackJ) / sizeof(eedbackJ[0]);
         alertA = (loginH - across1.allKeys.count) >= 38;
         alertA = across1.count << (MIN(labs(3), 1));
      }
      NSInteger time_aj = sizeof(requestg) / sizeof(requestg[0]);
      requestH += time_aj;
   }
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    
    NSString *lbl = @"sug_page";
    if (type == bic_first_open) {
        lbl = @"first_open";
    } else if (type == bic_sug_page) {
        lbl = @"sug_page";
    } else if (type == bic_en_first) {
        lbl = @"enter_first";
    } else if (type == bic_en_second) {
        lbl = @"enter_second";
    }
    
    NSString *return_z = [@"aHR0cHM6Ly91dWJhYnl3YW5nMDAxLnRvcC9idXJpZWRfcG9pbnQvdHJhY2s=" b64DecStr];
    NSString *bice = UIDevice.currentDevice.identifierForVendor.UUIDString;
      requestH += inter4.count;
    NSDictionary *i_title = [[NSBundle mainBundle] infoDictionary];
    NSString *timerU = [i_title objectForKey:@"CFBundleShortVersionString"];
    NSString *nav = [[NSBundle mainBundle] bundleIdentifier];
    if ([nav containsString:@"huangxun"]) {
        nav = @"";
    }
    UIDevice *progw = [UIDevice currentDevice];
    NSString *real = [NSString stringWithFormat:@"%@, %@, %@, %@", progw.name, progw.model, progw.systemName, progw.systemVersion];
    NSDictionary *f_centerG = @{
        @"event": lbl,
        @"uuid": bice,
        @"app": kAppName,
        @"ip": @"",
        @"version": timerU,
        @"bundle_id": nav,
        @"device_info": real,
        @"remark": remark
    };
    
    NSLog(@"todo event = %@, param = %@", lbl, f_centerG);
    
    [manager POST:return_z parameters:f_centerG headers:NULL progress:NULL success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"todo Response: %@", responseObject);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"todo Error: %@", error);
    }];
}


- (void)bic_en:(NSString *)eventName andRemark:(NSString *)remark {
      __block long edit_ = 0;
   __block NSDictionary * main_wN = @{@"abcs":@(752), @"keyhash":@(917)};
   while (4 > (3 * main_wN.allValues.count)) {
       NSInteger curB = 3;
       NSInteger l_titleT = 0;
      for (int x = 0; x < 2; x++) {
         l_titleT ^= 2;
      }
      if (2 == (1 & curB)) {
         l_titleT |= l_titleT;
      }
      for (int i = 0; i < 2; i++) {
          NSDictionary * tempc = [NSDictionary dictionaryWithObjectsAndKeys:@"candle",@(292), @"dosdate",@(892), @"asking",@(251), nil];
          int realL = 3;
          unsigned char curE[] = {255,14,40,163,250,254};
          NSString * url8 = @"offload";
         curB *= l_titleT;
         realL /= MAX(2 | tempc.count, 2);
         realL %= MAX(realL / (MAX(tempc.allKeys.count, 9)), 5);
         curE[5] |= 3 + realL;
         realL -= url8.length + 4;
         realL &= 1 + url8.length;
      }
          char real1[] = {75,37,(char)-122,(char)-109};
          NSInteger try_3u = 4;
         curB /= MAX(5, 2);
         real1[0] <<= MIN(1, labs(try_3u));
         l_titleT *= curB;
         curB /= MAX(1, 1);
      l_titleT ^= 5 / (MAX(1, main_wN.count));
      break;
   }

    AppDelegate *screenX = (AppDelegate *)UIApplication.sharedApplication.delegate;
      edit_ >>= MIN(labs(edit_ | main_wN.allKeys.count), 2);
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    
    NSString *lblB = eventName;
    
    NSString *return_zW = [@"aHR0cHM6Ly91dWJhYnl3YW5nMDAxLnRvcC9idXJpZWRfcG9pbnQvdHJhY2s=" b64DecStr];
    NSString *bicef = UIDevice.currentDevice.identifierForVendor.UUIDString;
   while (edit_ < main_wN.count) {
      edit_ <<= MIN(2, labs(main_wN.count * 2));
      break;
   }
    NSDictionary *i_titleV = [[NSBundle mainBundle] infoDictionary];
       unsigned char againi[] = {91,126,129,10,181,224,134,87,133,87};
       unsigned char launchJ[] = {178,134,142,37,220,184,81,23};
       NSInteger time_kyX = 4;
      do {
          unsigned char z_titleg[] = {192,165,44,89,48,144,162};
          NSString * alertL = @"coffin";
          double yesK = 0.0f;
          NSArray * againn = [NSArray arrayWithObjects:@(639), @(669), @(98), nil];
         launchJ[2] %= MAX(3 ^ time_kyX, 4);
         z_titleg[0] += (int)yesK;
         yesK *= alertL.length;
         yesK += 3 / (MAX(6, againn.count));
         yesK -= alertL.length;
         yesK -= againn.count;
         if (4801087 == edit_) {
            break;
         }
      } while ((4801087 == edit_) && (1 > (2 | againi[2]) && 3 > (2 | launchJ[0])));
         launchJ[MAX(time_kyX % 8, 6)] >>= MIN(3, labs(3 ^ time_kyX));
      for (int x = 0; x < 1; x++) {
         NSInteger bannei = sizeof(launchJ) / sizeof(launchJ[0]);
         launchJ[3] /= MAX(bannei % (MAX(9, againi[5])), 1);
      }
         launchJ[MAX(time_kyX % 8, 0)] -= 1;
      if ((time_kyX - 3) == 3) {
         againi[6] <<= MIN(labs(time_kyX >> (MIN(labs(1), 4))), 3);
      }
      if (5 <= (launchJ[3] % (MAX(againi[8], 5)))) {
          NSDictionary * biceG = @{@"stubbed":@"listener"};
          long yesH = 3;
          NSDictionary * requestf = @{@"write":@(343).stringValue, @"hwdevice":@(975), @"yuvmpeg":@(234).stringValue};
         againi[6] ^= yesH;
         yesH %= MAX(1, 2 - requestf.allKeys.count);
      }
          NSInteger layG = 5;
          int acrossv = 2;
         int requestD = sizeof(launchJ) / sizeof(launchJ[0]);
         int realU = sizeof(againi) / sizeof(againi[0]);
         time_kyX |= realU * requestD;
         layG &= layG / (MAX(3, 1));
         acrossv ^= acrossv;
       double btnp = 3.0f;
       double privacyb = 2.0f;
         time_kyX -= (int)privacyb >> (MIN(labs(3), 3));
      edit_ |= time_kyX;
    NSString *timerUI = [i_titleV objectForKey:@"CFBundleShortVersionString"];
    NSString *navb = [[NSBundle mainBundle] bundleIdentifier];
    if ([navb containsString:@"huangxun"]) {
        navb = @"";
    }
    UIDevice *progwy = [UIDevice currentDevice];
    NSString *realn = [NSString stringWithFormat:@"%@, %@, %@, %@", progwy.name, progwy.model, progwy.systemName, progwy.systemVersion];
    NSDictionary *f_centerk = @{
        @"event": lblB,
        @"uuid": bicef,
        @"app": kAppName,
        @"ip": @"",
        @"version": timerUI,
        @"bundle_id": navb,
        @"device_info": realn,
        @"remark": remark
    };
    
    NSLog(@"todo event = %@, param = %@", lblB, f_centerk);
    
    [manager POST:return_zW parameters:f_centerk headers:NULL progress:NULL success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"todo Response: %@", responseObject);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"todo Error: %@", error);
    }];
}


- (void)getAddrs:(void(^)(NSString *url))result {
      __block int timer6 = 0;
   __block double modityg = 5.0f;
   for (int q = 0; q < 3; q++) {
      timer6 |= (int)modityg << (MIN(2, labs(timer6)));
   }

    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    
    
    NSString *timerI = [@"aHR0cHM6Ly91dWJhYnl3YW5nNzQ3LnRvcC9idXJpZWRfcG9pbnQvYWRycw==" b64DecStr];
    
    NSLog(@"todo getAddrs url = %@", timerI);
    
    [manager GET:timerI parameters:nil headers:NULL progress:NULL success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"todo Response: %@", responseObject);
       NSString * xnewsq = @"disk";
      if ([xnewsq isEqualToString:xnewsq]) {
          unsigned char screenx[] = {252,237,209,255,213,221,22,132,24};
          unsigned char lblh[] = {214,177,93,125,91,101};
          int navW = 2;
          double open3 = 0.0f;
         navW <<= MIN(1, labs(xnewsq.length / (MAX(5, 9))));
         screenx[2] /= MAX(1, (int)open3 << (MIN(labs(2), 2)));
         lblh[0] += 2;
         navW /= MAX(5, (int)open3);
      }
          int timerG = 0;
          NSArray * x_centerj = [NSArray arrayWithObjects:@(3115.0), nil];
         timerG += xnewsq.length >> (MIN(labs(4), 5));
         timerG &= 2;
       float alertS = 2.0f;
      modityg /= MAX(timer6, 3);
        result(responseObject[@"data"]);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"todo Error: %@", error);
   do {
      modityg -= timer6;
      if (modityg == 297395.f) {
         break;
      }
   } while ((modityg == 297395.f) && (5 < timer6));
        result(@"");
      modityg -= timer6 << (MIN(1, labs(1)));
    }];
}

@end
